import Attendance from '../views/home/ziPages/Attendance.vue'
import Mine from '../views/home/ziPages/Mine.vue'
import Statistics from '../views/home/ziPages/Statistics.vue'
import Users from '../views/home/ziPages/Users.vue'
import Welcome from '../views/home/ziPages/Welcome.vue'
import StudentManager from '../views/home/ziPages/StudentManager/index.vue'
import studentProduct from '../views/home/ziPages/StudentManager/studentProduct.vue'
import studentDormitory from '../views/home/ziPages/StudentManager/studentDormitory.vue'
import studentProfile from '../views/home/ziPages/StudentManager/studentProfile.vue'

const allRoutes = [
  {
    path: 'welcome',
    name: 'welcome',
    component: Welcome,
    meta: {
      name: '管理首页',
      icon: 'icon-xiazai44'
    }
  },
  {
    path: 'attendance',
    name: 'attendance',
    component: Attendance,
    meta: {
      name: '考勤管理',
      icon: 'icon-kaoqindaka'
    }
  },
  {
    path: 'mine',
    name: 'mine',
    component: Mine,
    meta: {
      name: '我的中心',
      icon: 'icon-yonghu'
    }
  },
  {
    path: 'statistics',
    name: 'statistics',
    component: Statistics,
    meta: {
      name: '数据统计',
      icon: 'icon-icon_huabanfuben'
    }
  },
  {
    path: 'users',
    name: 'users',
    component: Users,
    meta: {
      name: '用户管理',
      icon: 'icon-xueyuandangan'
    }
  },
  {
    path: 'studentManager',
    name: 'studentManager',
    component: StudentManager,
    redirect: 'studentManager/studentProduct',
    meta: {
      name: '学员管理',
      icon: 'icon-wodeshenpi'
    },
    children: [
      {
        path: 'studentProduct',
        name: 'studentProduct',
        component: studentProduct,
        meta: {
          name: '学员项目管理',
          icon: 'icon-xiangmu_'
        }
      },
      {
        path: 'studentDormitory',
        name: 'studentDormitory',
        component: studentDormitory,
        meta: {
          name: '学员宿舍',
          icon: 'icon-susheshenqingliucheng'
        }
      },
      {
        path: 'studentProfile',
        name: 'studentProfile',
        component: studentProfile,
        meta: {
          name: '学员资料',
          icon: 'icon-ziliao'
        }
      }
    ]
  }
]

export default allRoutes
